package pool.errors;

import pool.exceptions.EmptyPoolException;
import pool.test.client.Client;

public abstract class ErrorHandler {
	
	protected ErrorHandler next;
	
	public void setNext(ErrorHandler handler){
		this.next = handler;
	}
	
	public abstract void handle(String handlerType, Client client) throws EmptyPoolException;
	
	public abstract void event(String handlerType);

}
